import pymongo

client = pymongo.MongoClient()

db2 = client.get_database('db2')

c = db2.get_collection('c2')


ret = c.find()
print(ret)
for data in ret:
    print(data)


